target_sources(vmi_shared PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/kvm_common.c
        ${CMAKE_CURRENT_SOURCE_DIR}/libvirt_wrapper.c)

if (ENABLE_KVM_LEGACY)
    target_sources(vmi_shared PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/kvm_legacy.c)
elseif (ENABLE_KVM_SEE)
    target_sources(vmi_shared PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/kvm_see.c)
else ()
    target_sources(vmi_shared PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/kvm.c
        ${CMAKE_CURRENT_SOURCE_DIR}/kvm_events.c
        ${CMAKE_CURRENT_SOURCE_DIR}/kvm_slat.c
        ${CMAKE_CURRENT_SOURCE_DIR}/libkvmi_wrapper.c)
endif ()
